//
//  Console.h
//  c_Render
//
//  Created by liao peterson on 11/9/09.
//  Copyright 2009 uestc. All rights reserved.
//
#ifndef CONSOLE_H
#define CONSOLE_H
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "Mathutilis.h"
#import "DataStructures.h"
#import "Physics.h"
#import "GameMeshes.h"
#import "Scene.h"
#import "Audio.h"
#import "RenderObject.h"
#import "Macros.h"
#import "Shaders.h"
#import "Fonts.h"
#import "FrameBuffer.h"

@interface Console : NSObject {
	CGPoint startp,endp;
	GLushort flag;
	GLushort flag1;
	Matrix4x4*ortho,*rot,*transform;
	GLfloat camSpeedX,camSpeedY;
	
	GLint m_u_mvpHandle,m2w_Handle;
	GLint tex_Handle;
	GLuint*textureIds;
	
	Scene*renderScene;
	Meshes*nmeshes;
	GLint t;
	
	RenderModel**RenderModelTargets;
	RenderTexture*UI;
	RenderTexture*font;
	
	CALayer*layer;
	FrameBufferManager *fbManager;
}
@property Scene*renderScene;
@property CGPoint startp,endp;
@property GLushort flag;
@property GLushort flag1;
//GL API
-(GLuint)LoadShader:(GLenum)type :(const char*)shaderSrc;
-(void)Graphics_Init:(const GLchar*)sceneName :(CALayer*)cal;
-(void)Graphics_Draw;
-(void)Graphics_Quit;
-(void)InitRenderTarget:(const Scene*)scene;
//Touch API
-(void)touchBegin;
-(void)touchMoved;
-(void)touchEnded;
@end


#endif